import { createRouter, createWebHistory } from 'vue-router'
// import MimeView from "../views/MimeView/MimeView.vue";
import BookMallView from "../views/BookMallVue/BookMallView.vue"
import ListeningView from '../views/ListeningView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '',
      redirect: '/bookmallview'
    },
    {
      path: '/',
      redirect: '/bookmallview'
    },
    // {
    //   path: '/mime',
    //   name: 'mime',
    //   component: MimeView,
    //   meta: {
    //     showFree: true,
    //     keepAlive: true,
    //   }
    // },
    {
      path: '/bookmallview',
      name: 'BookMallView',
      component: BookMallView,
      meta: {
        showFree: true,
        keepAlive: true,
      },
    },

    {
      path: '/ListeningView/:id',
      name: 'ListeningView',
      component: ListeningView,
      meta: {
        showFree: false,
        keepAlive: false,
      },
      props: true,
    },

  ]
})

export default router
